<template>
	<view class="container">
		<xk-header :headerbg="true" class="header" :back="true" title="支付费用"></xk-header>
		<!-- 支付信息 start -->
		<view class="top">
			<view class="icon"><u-icon name="checkmark-circle-fill" color="#008EE5" size="100"></u-icon></view>
			<view class="status">会议预约已提交成功</view>
			<view class="count-down">支付倒计时：9分钟35秒</view>
			<view class="list">
				<view class="line">
					<u-row customStyle="margin-right:30rpx;">
						<u-col span="6">
							<view class="title">会议室名称</view>
						</u-col>
						<u-col span="6">
							<view class="content">共享会议KTV</view>
						</u-col>
					</u-row>
					<view class="divider"><u-divider></u-divider></view>
				</view>
				<view class="line">
					<u-row customStyle="margin-right:30rpx;">
						<u-col span="6">
							<view class="title">计时费用</view>
						</u-col>
						<u-col span="6">
							<view class="content">10元 / 30分钟</view>
						</u-col>
					</u-row>
					<view class="divider"><u-divider></u-divider></view>
				</view>
				<view class="line">
					<u-row customStyle="margin-right:30rpx;">
						<u-col span="6">
							<view class="title">预约日期</view>
						</u-col>
						<u-col span="6">
							<view class="content">2022-11-30</view>
						</u-col>
					</u-row>
					<view class="divider"><u-divider></u-divider></view>
				</view>
				<view class="line">
					<u-row customStyle="margin-right:30rpx;">
						<u-col span="6">
							<view class="title">预约时段</view>
						</u-col>
						<u-col span="6">
							<view class="content">16:00-18:00</view>
						</u-col>
					</u-row>
					<view class="divider"><u-divider></u-divider></view>
				</view>
				<view class="line">
					<u-row customStyle="margin-right:30rpx;">
						<u-col span="6">
							<view class="title">预约时长</view>
						</u-col>
						<u-col span="6">
							<view class="content">120分钟</view>
						</u-col>
					</u-row>
					<view class="divider"><u-divider></u-divider></view>
				</view>
				<view class="line" style="height: 100rpx;margin-top: 40rpx;">
					<u-row customStyle="margin-right:30rpx;">
						<u-col span="6">
							<view class="title">小计</view>
						</u-col>
						<u-col span="6">
							<view class="content">共40元</view>
						</u-col>
					</u-row>
				</view>
			</view>
		</view>
		<!-- 支付信息 end -->

		<!-- 使用优惠券 start -->
		<view class="middle">
			<view class="line-middle">
				<u-row customStyle="margin-right:30rpx;">
					<u-col span="6">
						<view class="title">使用优惠券</view>
					</u-col>
					<u-col span="5.5">
						<view class="content" style="color: #E21111;margin-right: 18rpx;">-10元</view>
					</u-col>
					<u-col span="0.5">
						<view style="margin-top: 4rpx;"><u-icon name="arrow-right" size="18"></u-icon></view>
					</u-col>
				</u-row>
			</view>
		</view>
		<!-- 使用优惠券 end -->

		<!-- 使用微信支付 start -->
		<view class="final">
			<view class="line-final">
				<u-row customStyle="margin-right:30rpx;">
					<u-col span="1">
						<view style="margin-left: 30rpx;"><u--image shape="circle" :showLoading="true" :src="src" width="48rpx" height="48rpx"></u--image></view>
					</u-col>
					<u-col span="6">
						<view class="content" style="margin-left: 30rpx;">微信支付</view>
					</u-col>
					<u-col span="5">
						<view class="chose">
							<view class="circle" @click="chose">
								<view :class="pay ? 'chosen' : ''"></view>
							</view>
						</view>
					</u-col>
				</u-row>
			</view>
		</view>
		<!-- 使用微信支付 end -->

		<view style="height: 190rpx;"></view>

		<!-- 支付按钮 start -->
		<view class="bottom-button">
			<view class="should-pay">应付：30元</view>
			<u-button @click="jumpToPayDetail" type="primary" text="立即支付" customStyle="width: 280rpx;margin-top: 24rpx;border-radius: 23px;float:right;margin-right:40rpx;"></u-button>
		</view>
		<!-- 支付按钮 end -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src: this.$config.BASE_imgUrl+'/wx/wxPay.png',
				radiovalue:'',
				pay:true
			};
		},
		methods: {
			groupChange() {

			},
			//是否使用微信支付
			chose() {
				this.pay = !this.pay
			},
			//跳转到支付详情页面
			jumpToPayDetail() {
				uni.navigateTo({
					url:'/pagesB/meeting/payDetail'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.container {
		background-color: rgba(246, 247, 251, 1);
		height: 100vh;
		// padding: 30rpx 20rpx 0 20rpx;
		.top {
			position: relative;
			width: 95%;
			height: 950rpx;
			background-color: #FFFFFF;
			border-radius: 20rpx;
			margin-top: 30rpx;
			margin-left: 20rpx;
			margin-right: 20rpx;
			.icon {
				position: relative;
				width: 180rpx;
				height: 180rpx;
				margin: auto;
				top: 20rpx;
			}
			.status {
				position: relative;
				color: rgba(16, 16, 16, 1);
				font-size: 40rpx;
				font-weight: 600;
				top: 40rpx;
				width: 100%;
				text-align: center;
			}
			.count-down {
				position: relative;
				color: rgba(182, 178, 178, 1);
				font-size: 28rpx;
				top: 50rpx;
				width: 100%;
				text-align: center;
			}
			.list {
				position: relative;
				width: 100%;
				height: 700rpx;
				top: 80rpx;
				.line {
					position: relative;
					width: 100%;
					height: 80rpx;
					margin-bottom: 20rpx;
					.divider {
						width: 100%;
						position: absolute;
						bottom: -28rpx;
					}
					.title {
						font-size: 32rpx;
						margin-left: 40rpx;
					}
					.content {
						text-align: right;
						font-size: 32rpx;
						color: rgba(153, 153, 153, 1);
					}
				}
			}
		}
		.middle {
			position: relative;
			width: 95%;
			height: 100rpx;
			background-color: #FFFFFF;
			border-radius: 20rpx;
			top: 30rpx;
			margin-left: 20rpx;
			margin-right: 20rpx;
			.line-middle {
				width: 100%;
				position: relative;
				top: 28rpx;
				.title {
					font-size: 32rpx;
					margin-left: 40rpx;
				}
				.content {
					text-align: right;
					font-size: 32rpx;
					color: rgba(153, 153, 153, 1);
				}
			}
		}
		.final {
			position: relative;
			width: 95%;
			margin-left: 20rpx;
			margin-right: 20rpx;
			height: 160rpx;
			background-color: #FFFFFF;
			border-radius: 20rpx;
			top: 58rpx;
			.line-final {
				width: 100%;
				position: relative;
				top: 60rpx;
				.title {
					font-size: 32rpx;
					margin-left: 40rpx;
				}
				.content {
					text-align: left;
					font-size: 32rpx;
					color: rgba(153, 153, 153, 1);
				}
				.chose {
					display: flex;
					margin-top: 4rpx;
					justify-content: flex-end;
					margin-right: 20rpx;
					.circle {
						width: 40rpx;
						height: 40rpx;
						border-radius: 50%;
						border: 1px solid rgba(187, 187, 187, 1);
						display: flex;
						justify-content: center;
						align-items: center;
						.chosen {
							background-color: #80C088;
							height: 20rpx;
							width: 20rpx;
							border-radius: 50%;
						}
					}
				}
			}
		}
		.bottom-button {
			position: fixed;
			height: 120rpx;
			background-color: #FFFFFF;
			width: 100%;
			bottom: 0;
			.should-pay {
				position: absolute;
				font-size: 32rpx;
				font-weight: 600;
				left: 30rpx;
				top: 40rpx;
			}
		}
	}
</style>
